//使用switch实现分数等级的判断
import java.util.Scanner;
public class SwitchScoreTest{
	public static void main(String[] args) {
		// 1.提示用户输入分数并使用变量保存
		System.out.println("请输入您的分数");
		Scanner sc = new Scanner(System.in);
		int score = sc.nextInt();
		String scoreLevel = "等级E";
		// 2.使用switch实现分数等级的判断
		switch(score / 10){
			case 10: //scoreLevel = "等级A"; //break; //case穿透
			case 9: scoreLevel = "等级A"; break;
			case 8: scoreLevel = "等级B"; break;
			case 7: scoreLevel = "等级C"; break;
			case 6: scoreLevel = "等级D"; break;
			default :  scoreLevel = "等级E"; break;
		}
		// 3.打印结果
		System.out.println("您的分数等级是: " + scoreLevel);
	}
}